package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.AdminMenuService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/menu")
public class AdminMenuController {
    @Resource
    private AdminMenuService adminMenuService;

    /**
     * 平台端菜单查询
     * @return
     */
    @GetMapping("/listAll")
    @ApiOperation("平台端菜单查询")
    public ResponseResult listAll(){
        return adminMenuService.listAll();
    }
}
